{template 'common/header'}

<div class="main">
	<ul class="nav nav-tabs">
        <li class="active">订单统计: 实收 {$sum1}元/{$sum}元</li>
	</ul>

	<div style="padding:15px;">
		<table class="table table-hover">
			<thead class="navbar-inner">
				<tr>
                    <th >id</th>
                    <!-- <th style="width:100px;">uuid</th> -->
                    <th style="">金额</th>
                    <th>说明</th>
                    <th>类型</th>
					<th>时间</th>
					<th style="text-align:right;">操作</th>
				</tr>
			</thead>
			<tbody>
				{loop $list $row}
				<tr>
                    <td>{$row['id']} </td>
                    <!-- <td>{$row['app_uuid']} </td> -->
                    <td>{$row['money']}</td>
                    <td>{$row['pay_note']}</td>
                    <td>
                        <span class="label label-success"> {$row['pay_type']} </span>
                    </td>
					<td>{php echo date('m-d H:i:s', $row['create_time'])}</td>
					<td>
                        {if $row['status']==1}
                        <span class="label label-success">已支付</span>
                        {else if $row['status']==2}
                        <span class="label label-danger">未支付</span>
                        {else}
                        <a onclick="return confirm('您确定收到钱了吗？');return false;" href="{php echo $this->createMobileUrl('paylist', array('op'=>'change','id'=>$row['id'],'status'=>1))}"
                           class="btn btn-warning btn-sm" >确认已收
                        </a>
                        {/if}
					</td>
				</tr>
				{/loop}
					<tr>
 				<td colspan="7">

                </td>
			</tr>
			</tbody>
		</table>
	</div>

</div>

{template 'common/footer'}
